<?php
set_include_path(
    get_include_path() . PATH_SEPARATOR .
        __DIR__ . '/src' . PATH_SEPARATOR .
        __DIR__ . '/tpl' . PATH_SEPARATOR .
        __DIR__ . '/tmp' . PATH_SEPARATOR .
        __DIR__. '/vendor'
);

require_once __DIR__. '/vendor/autoload.php';

$loader = new \Composer\Autoload\ClassLoader();
$loader->add('Symfony\Component\Yaml', __DIR__ . '/vendor/symfony/yaml');
$loader->register();

$yamlFile = \Symfony\Component\Yaml\Yaml::parse(__DIR__ . '/config/namespaces.yml');
$loader->addClassMap($yamlFile);
$loader->register();
